<?php

class axisTable {

    /** Methode permettant de recuperer un axe selon son identifiant * */
    public static function o_getAxisById($id) {
        $o_connection = dbconnection::getInstance();
        $sz_sql = "select * from axis where id='" . $id . "'";

        $a_res = $o_connection->doQueryObject($sz_sql, "axis");

        if ($a_res === false)
            return false;

        return $a_res[0];
    }

    /**
     * Get All Axis in database
     */
    public static function a_getAllAxis() {
        $o_connection = dbconnection::getInstance();
        $sz_sql = "select * from axis ";

        $a_res = $o_connection->doQueryObject($sz_sql, "axis");

        if ($a_res === false)
            return false;

        return $a_res;
    }

}
